package com.aurora.blog.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.aurora.blog.mapper.BlogTagsMapper;
import com.aurora.blog.domain.BlogTags;
import com.aurora.blog.service.IBlogTagsService;

/**
 * 标签Service业务层处理
 * 
 * @author aurora
 * @date 2024-06-04
 */
@Service
public class BlogTagsServiceImpl implements IBlogTagsService 
{
    @Autowired
    private BlogTagsMapper blogTagsMapper;

    /**
     * 查询标签
     * 
     * @param tagId 标签主键
     * @return 标签
     */
    @Override
    public BlogTags selectBlogTagsByTagId(Long tagId)
    {
        return blogTagsMapper.selectBlogTagsByTagId(tagId);
    }

    /**
     * 查询标签列表
     * 
     * @param blogTags 标签
     * @return 标签
     */
    @Override
    public List<BlogTags> selectBlogTagsList(BlogTags blogTags)
    {
        return blogTagsMapper.selectBlogTagsList(blogTags);
    }

    /**
     * 新增标签
     * 
     * @param blogTags 标签
     * @return 结果
     */
    @Override
    public int insertBlogTags(BlogTags blogTags)
    {
        return blogTagsMapper.insertBlogTags(blogTags);
    }

    /**
     * 修改标签
     * 
     * @param blogTags 标签
     * @return 结果
     */
    @Override
    public int updateBlogTags(BlogTags blogTags)
    {
        return blogTagsMapper.updateBlogTags(blogTags);
    }

    /**
     * 批量删除标签
     * 
     * @param tagIds 需要删除的标签主键
     * @return 结果
     */
    @Override
    public int deleteBlogTagsByTagIds(Long[] tagIds)
    {
        return blogTagsMapper.deleteBlogTagsByTagIds(tagIds);
    }

    /**
     * 删除标签信息
     * 
     * @param tagId 标签主键
     * @return 结果
     */
    @Override
    public int deleteBlogTagsByTagId(Long tagId)
    {
        return blogTagsMapper.deleteBlogTagsByTagId(tagId);
    }
}
